{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "FizzBuzz\n"
     ]
    }
   ],
   "source": [
    "import os\n",
    "import sys\n",
    "\n",
    "# 请在此输入您的代码\n",
    "\n",
    "# 注意，输入的都是当作string看待的。\n",
    "target_Z_num = int(input())\n",
    "qualification_1 = target_Z_num % 3 \n",
    "qualification_2 = target_Z_num % 5\n",
    "if qualification_1 == 0 and qualification_2 == 0:\n",
    "  print(\"FizzBuzz\")\n",
    "elif qualification_1 == 0:\n",
    "  print(\"Fizz\")\n",
    "elif qualification_2 == 0:\n",
    "  print(\"Buzz\")\n",
    "else:\n",
    "  # 都不能整除\n",
    "  print(target_Z_num)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "还有一个很神奇的题解，竟然是字符串拼接"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "n = int(input())\n",
    "s = ''\n",
    "if n % 3 == 0:\n",
    "    s += 'Fizz'\n",
    "if n % 5 == 0:\n",
    "    s += 'Buzz'\n",
    "print(s if s else n)\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "science39",
   "language": "python",
   "name": "science39"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
